<?php
include("dao/DatabaseDAO.php");
include("Security.php");

Security::checkAuthenticated();

$databaseDAO = new DatabaseDAO();
$columnNames = $databaseDAO->getTableColumns($_POST["databaseId"], $_POST["table"]);
echo json_encode($columnNames);
?>